package com.cheetah.start.system.role.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheetah.start.system.admin.domain.SysAdmin;
import com.cheetah.start.system.role.domain.SysRole;
import com.cheetah.start.system.role.domain.SysRoleAdmin;

import java.util.List;

/**
 * 系统角色管理服务
 *
 * @author Feel
 * @date 2021/10/17
 */
public interface SysRoleAdminService extends IService<SysRoleAdmin> {

    List<String> getRoleCodeByAdminId(Integer adminId);

    List<SysRole> getByAdminId(Integer adminId);

    boolean saveBySysAdmin(SysAdmin sysAdmin);

    boolean removeByAdminId(Integer adminId);

    boolean removeByRoleId(Integer roleId);

    boolean removeByColVal(String col,Object val);

    List<SysRoleAdmin> listByAdminId(Integer adminId);
}
